<include file="Public/sui_header" />
	<a href="{$model['h5_link']}"><img src="__PUBLIC__/file/{$model['img']}" class="detail-img" /></a>
	<div style="font-size:1.2em">
	    <span class="color-block">&nbsp;</span>&nbsp;基本信息
	  </div>
	<div class="card">
    <div class="card-content">
      <div class="card-content-inner">
      	  <div class="list-block">
		    <ul>
		      <li>
		        <div class="item-content">
		          <div class="item-inner">
		            <div class="item-title label">名称</div>
		            <div class="item-input">
		            	{$model['name']}
		            </div>
		          </div>
		        </div>
		      </li>
		      <li>
		        <div class="item-content">
		          <div class="item-inner">
		            <div class="item-title label">类型</div>
		            <div class="item-input">
		            	{$fundingType['long_name']}
		            </div>
		          </div>
		        </div>
		      </li>
		    </ul>
		  </div>
      </div>
    </div>
  </div>
  <form method="post">
	<div style="font-size:1.2em">
	    <span class="color-block">&nbsp;</span>&nbsp;参与信息
	  </div>
	<div class="card">
    <div class="card-content">
      <div class="card-content-inner">
      	  <div class="list-block">
		    <ul>
		      <li>
		        <div class="item-content">
		          <div class="item-inner">
		            <div class="item-title label">姓名</div>
		            <div class="item-input">
		            	<input type="text" name="name" value="{$user['name']}" placeholder="请输入您的姓名">
		            </div>
		          </div>
		        </div>
		      </li>
			  <li>
		        <div class="item-content">
		          <div class="item-inner">
		            <div class="item-title label">性别</div>
		            <div class="item-input">
		            	<select name="user_gender">
		            		<option value="男" <if condition="$user['gender'] eq '男'">selected </if>">男</option>
		            		<option value="女" <if condition="$user['gender'] eq '女'">selected </if>>女</option>
		            	</select>
		            </div>
		          </div>
		        </div>
		      </li>
		      <li>
		        <div class="item-content">
		          <div class="item-inner">
		            <div class="item-title label">电话</div>
		            <div class="item-input">
		            	<input type="text" name="phone" value="{$user['username']}" placeholder="请输入您的电话">
		            </div>
		          </div>
		        </div>
		      </li>
		    </ul>
		  </div>
      </div>
    </div>
  </div>
    <div style="font-size:1.2em">
        <span class="color-block">&nbsp;</span>&nbsp;游客信息
        <a href="__MODULE__/Tourist/list?fromType=Funding&fromId={$_GET[id]}" style="font-size: 0.8rem;">添加</a>
    </div>
    <div class="card">
        <div class="card-content">
            <div class="card-content-inner">
                <div class="list-block">
                    <ul>
                        <php>
                            $tourist = D('Tourist')->where(['user_id'=>session('用户')['id']])->select();
                        </php>
                        <volist name="tourist" id="vo">
                            <li>
                                <div class="item-content">
                                    <div class="item-inner">
                                        <label>
                                            <input type="checkbox" name="tourist[]" value="{$vo['id']}" > {$vo['name']}
                                        </label>
                                    </div>
                                </div>
                            </li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div style="font-size:1.2em">
        <span class="color-block">&nbsp;</span>&nbsp;保险信息
    </div>
    <div class="card">
        <div class="card-content">
            <div class="card-content-inner">
                <div class="list-block">
                    <ul>
                        <php>
                            $insurance = D('Insurance')->select();
                        </php>
                        <volist name='insurance' id="vo">
                            <li>
                                <div class="item-content">
                                    <div class="item-inner">
                                        <label>
                                            <input type="checkbox" name="insurance[]" value="{$vo['id']}" <if condition="($vo['is_force'] eq '是') AND ($model['funding_type'] eq '4')"> checked onclick="return false;" </if>> {$vo['name']} | ￥{$vo['price']}
                                        </label>
                                        <a href="{:U('Insurance/detail', ['id'=>$vo['id']])}">详情</a>
                                    </div>
                                </div>
                            </li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
    </div>
  
<input type="hidden" name="guider_user_id" value="{$_GET['id']}">
<input type="hidden" name="consignment_id" value="{$_GET['consignment_id']}">
  <div class="row detail-submit">
          <div class="col-50"><a href="#" class="button button-big button-fill button-danger return">取消</a></div>
          <div class="col-50"><input type="submit" value="提交" class="button button-big button-fill button-success"></div>
  </div>
  </form>
<include file="Public/sui_footer" />